package com.hlhj.funlike_businessqzxd.activity

import com.bumptech.glide.Glide
import com.example.mymvp.mvp.BaseModule
import com.example.mymvp.mvp.BasePresenter
import com.example.mymvp.mvp.BaseView
import com.hlhj.funlike_businessqzxd.R
import kotlinx.android.synthetic.main.aty_preview.*

class PreViewAty :BaseActivity<BaseView,BasePresenter<BaseModule,BaseView>>(), BaseView {
    override fun initView() {
        val imgUrl = intent.getStringExtra("uri")

        Glide.with(this).load(imgUrl).into(photoView)
    }

    override fun logicStart() {
    }

    override fun setListener() {
        photoView.setOnClickListener {
            finish()
        }
    }

    override fun getContentId(): Int {
        return R.layout.aty_preview
    }

    override fun createPresenter(): BasePresenter<BaseModule, BaseView> {
        return object :BasePresenter<BaseModule,BaseView>(){
            override fun createModule() {
            }
        }
    }

    override fun initData() {
    }

    override fun bindView(): BaseView {
        return this
    }
}